dispatch

abstract fun dispatch(event: KeyPressed)

Dispatches the key pressed event to the currently focused element on the loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the key pressed event

Throws

when the browser is already closed


abstract fun dispatch(event: KeyReleased)

Dispatches the key released event to the currently focused element on the loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the key released event

Throws

when the browser is already closed


abstract fun dispatch(event: KeyTyped)

Dispatches the key typed event to the currently focused element on the loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the key typed event

Throws

when the browser is already closed


abstract fun dispatch(event: MousePressed)

Dispatches the mouse pressed event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse pressed event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseReleased)

Dispatches the mouse released event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse released event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseEntered)

Dispatches the mouse entered event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse entered event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseExited)

Dispatches the mouse exited event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse exited event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseDragged)

Dispatches the mouse dragged event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse dragged event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseMoved)

Dispatches the mouse moved event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse moved event

Throws

when the browser is already closed


abstract fun dispatch(event: MouseWheel)

Dispatches the mouse wheel event to the currently loaded web page. It does nothing if the browser instance hasn't loaded any web page.

Parameters

event

the mouse wheel event

Throws

when the browser is already closed